package com.yc.damai.web.remote;

import com.yc.damai.entity.Product;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@FeignClient(value = "damai-order",
        fallback = OrderActionImpl.class)
public interface IOrderAction {

    @RequestMapping("queryNews")
    List<Product> queryNews();

    @RequestMapping("queryHots")
    List<Product> queryHots();
}
